import {FileSystemManager} from './tool/wx.public'
// 初始化小程序逻辑
export class InitializeMiniProgram {
   constructor(dwaddres){
        this.MiniProgramConFig = __wxConfig; // 获取小程序配置
        this.downloadFileAddress = dwaddres || this.MiniProgramConFig.accountInfo.nickname; // 根据当前小程序名字或者传入名字当做下载目录
        this.FileHost = `${wx.env.USER_DATA_PATH}/${this.downloadFileAddress}` // 创建小程序下载文件路径
        this.uploadAliyunOSSURL = 'https://recite-words.oss-cn-hangzhou.aliyuncs.com' // 上传oss路径
        this.AliyunOSStoragePath = 'front-course/h5/' // 上传oss文件夹
        // 创建小程序下载文件地址
       FileSystemManager.CheckDirectory(this.FileHost).then() 
    }
}